Skip to content

allow range to satisfy key distribution generally#23680

Open
gene-bordegaray wants to merge 1 commit into
apache:mainfrom
gene-bordegaray:gene.bordegaray/2026/07/allow_range_to_satisfy_key_distribution_generally
Open

allow range to satisfy key distribution generally#23680
gene-bordegaray wants to merge 1 commit into
apache:mainfrom
gene-bordegaray:gene.bordegaray/2026/07/allow_range_to_satisfy_key_distribution_generally

Conversation

@gene-bordegaray

@gene-bordegaray gene-bordegaray commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

Partitioning::Range now satisfies Distribution::KeyPartitioned privately across all operators that require it: aggregates, windows, TopK, and co-partitioned joins. So now the temporary operator opt-ins can be consolidated.

What changes are included in this PR?

  • Allow compatible Partitioning::Range to satisfy Distribution::KeyPartitioned via Partitioning::satisfaction
  • Remove the temporary range-satisfaction helpers and operator-specific opt-ins

Are these changes tested?

Yes

Are there any user-facing changes?

No, this should not change any exisitng behavior just consolidation

@github-actions github-actions Bot added physical-expr Changes to the physical-expr crates optimizer Optimizer rules physical-plan Changes to the physical-plan crate labels Jul 17, 2026
@gene-bordegaray
gene-bordegaray force-pushed the gene.bordegaray/2026/07/allow_range_to_satisfy_key_distribution_generally branch from de0572d to 7df0261 Compare July 21, 2026 18:35
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.01325% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.70%. Comparing base (eef1017) to head (7df0261).

Files with missing lines Patch % Lines
datafusion/physical-expr/src/partitioning.rs 97.82% 0 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #23680      +/-   ##
==========================================
- Coverage   80.71%   80.70%   -0.01%     
==========================================
  Files        1089     1089              
  Lines      368748   368571     -177     
  Branches   368748   368571     -177     
==========================================
- Hits       297633   297463     -170     
+ Misses      53372    53365       -7     
  Partials    17743    17743              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@gene-bordegaray
gene-bordegaray marked this pull request as ready for review July 21, 2026 19:55
@gene-bordegaray

Copy link
Copy Markdown
Contributor Author

cc: @gabotechs

@gene-bordegaray gene-bordegaray changed the title [WIP] allow range to satisfy key distribution generally allow range to satisfy key distribution generally Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

optimizer Optimizer rules physical-expr Changes to the physical-expr crates physical-plan Changes to the physical-plan crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow Partitioning::Range to satisfy Distribution::KeyPartitioned generally

2 participants